MinCaml の test ディレクトリの中のプログラムを動かしてみる
動いたプログラム
ack.ml
adder.ml
test/cls-bug
test/cls-bug2
sum
shuffle
print
even-odd
動かないプログラム
float
spill
spill2
non-tail-if2
メモ
code:sh
(NG)
make clean && ./to_aarch64 && make min-caml && ./min-caml test/spill && clang test/spill.s libmincaml.S samples/stub.c -o test/a.out && test/a.out
(OK)
make clean && ./to_aarch64 && make min-caml && ./min-caml test/adder && clang test/adder.s libmincaml.S samples/stub.c -o test/a.out && test/a.out
(OK)
make clean && ./to_aarch64 && make min-caml && ./min-caml test/spill2 && clang test/spill2.s libmincaml.S samples/stub.c -o test/a.out && test/a.out
(OK)
make clean && ./to_aarch64 && make min-caml && ./min-caml test/shuffle && clang test/shuffle.s libmincaml.S samples/stub.c -o test/a.out && test/a.out
(OK)
make clean && ./to_aarch64 && make min-caml && ./min-caml test/print && clang test/print.s libmincaml.S samples/stub.c -o test/a.out && test/a.out
(OK)
make clean && ./to_aarch64 && make min-caml && ./min-caml test/non-tail-if2 && clang test/non-tail-if2.s libmincaml.S samples/stub.c -o test/a.out && test/a.out
(OK)
make clean && ./to_aarch64 && make min-caml && ./min-caml test/even-odd && clang test/even-odd.s libmincaml.S samples/stub.c -o test/a.out && test/a.out
(???)
make clean && ./to_aarch64 && make min-caml && ./min-caml test/float && clang test/float.s libmincaml.S samples/stub.c -o test/a.out && test/a.out
(OK)
make clean && ./to_aarch64 && make min-caml && ./min-caml test/cls-bug2 && clang test/cls-bug2.s libmincaml.S samples/stub.c -o test/a.out && test/a.out